cmake_minimum_required(VERSION 3.28.3)
project(student_score)

set(CMAKE_CXX_STANDARD 20)

add_executable(student_score main.cpp)

# 查找 SQLite3 库
find_package(SQLite3 REQUIRED)
if(SQLite3_FOUND)
    include_directories(${SQLite3_INCLUDE_DIRS})
    target_link_libraries(student_score ${SQLite3_LIBRARIES})
else()
    message(FATAL_ERROR "SQLite3 not found!")
endif()